// 二次封装ajax  用户页
// 导入第一次封装
import request from "@/utils/request";

export const uesrLogin = ({ username, password }) => {
  return request.post("/auth/login", {
    username,
    password,
  });
};

// 封装获取个人信息ajax
export const getUser = () => {
  return request.get("/auth/currentUser");
};
